how to use the if function